package com.websql.yousql.annotation.operationLog;

public enum OperationType {
    SELECT,
    INSERT,
    UPDATE,
    DELETE,
    LOGIN,
    LOGOUT;

    public String getType() {
        switch (this){
            case SELECT:    return "select";
            case INSERT:    return "insert";
            case UPDATE:    return "update";
            case DELETE:    return "delete";
            case LOGIN:     return "login";
            case LOGOUT:    return "logout";
            default:        return null;
        }
    }

}
